package com.model;

import java.util.Date;

/**
 * OrderitemsVO entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class Orderitems implements java.io.Serializable {

	// Fields

	private Long orderitemsId;
	private Orders ordersDTO;
	private Product productDTO;
	private Date createtime;
	private Integer quantity;
	private Double price;
	private Double discountprice;

	// Constructors

	/** default constructor */
	public Orderitems() {
	}

	/** minimal constructor */
	public Orderitems(Orders ordersDTO, Product productDTO) {
		this.ordersDTO = ordersDTO;
		this.productDTO = productDTO;
	}

	/** full constructor */
	public Orderitems(Orders ordersDTO, Product productDTO, Date createtime,
			Integer quantity, Double price, Double discountprice) {
		this.ordersDTO = ordersDTO;
		this.productDTO = productDTO;
		this.createtime = createtime;
		this.quantity = quantity;
		this.price = price;
		this.discountprice = discountprice;
	}

	// Property accessors

	public Long getOrderitemsId() {
		return this.orderitemsId;
	}

	public void setOrderitemsId(Long orderitemsId) {
		this.orderitemsId = orderitemsId;
	}

	public Orders getOrders() {
		return this.ordersDTO;
	}

	public void setOrders(Orders ordersDTO) {
		this.ordersDTO = ordersDTO;
	}

	public Product getProduct() {
		return this.productDTO;
	}

	public void setProduct(Product productDTO) {
		this.productDTO = productDTO;
	}

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getQuantity() {
		return this.quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getDiscountprice() {
		return this.discountprice;
	}

	public void setDiscountprice(Double discountprice) {
		this.discountprice = discountprice;
	}

}